package star.cloud.asme.flowable.form;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import jakarta.persistence.MappedSuperclass;
import jakarta.persistence.Transient;
import lombok.Data;
import lombok.EqualsAndHashCode;
import star.cloud.asme.base.mybatis.IBaseEntity;

import java.util.Map;

@EqualsAndHashCode(callSuper = true)
@Data
@MappedSuperclass
public class FormBaseEntity<T extends Model<?>> extends IBaseEntity<T> {
    private String processDefinitionId;
    private String processDefinitionKey;
    private String processInstanceId;
    private String processInstanceName;
    private Integer businessFlowId;//每天单独计算的流水号
    private String businessId;//自定义的流程编号，格式为（流程定义key-日期-业务流水号）
    @Transient
    @TableField(exist = false)
    private Map<String, Object> variables;
}
